package com.alpaak.consumer.xml;

import com.alpaak.service.AnnotationService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.concurrent.CompletableFuture;

/**
 * @author alpaak
 * @des: xml测试消费
 * @date 2020/4/6 17:29
 */
public class XmlApp {
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/dubbo-consumer.xml");
        context.start();
        AnnotationService xmlService = context.getBean("xmlService", AnnotationService.class);
        String hello =  xmlService.sayHello("hello");
        System.out.println("result: " + hello);
    }
}
